home *** CD-ROM | disk | FTP | other *** search
/ Freelog 115 / FreelogNo115-MaiJuin2013.iso / Internet / Filezilla Server / FileZilla_Server-0_9_41.exe / source / interface / UsersDlgSpeedLimit.h < prev    next >
C/C++ Source or Header  |  2011-11-06  |  3KB  |  106 lines

  1. // FileZilla Server - a Windows ftp server
  2.  
  3. // Copyright (C) 2002-2004 - Tim Kosse <tim.kosse@gmx.de>
  4.  
  5. // This program is free software; you can redistribute it and/or
  6. // modify it under the terms of the GNU General Public License
  7. // as published by the Free Software Foundation; either version 2
  8. // of the License, or (at your option) any later version.
  9.  
  10. // This program is distributed in the hope that it will be useful,
  11. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13. // GNU General Public License for more details.
  14.  
  15. // You should have received a copy of the GNU General Public License
  16. // along with this program; if not, write to the Free Software
  17. // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
  18.  
  19. #if !defined(AFX_USERSDLGSPEEDLIMIT_H__C47564E9_A44A_4103_A810_109ECD6215F8__INCLUDED_)
  20. #define AFX_USERSDLGSPEEDLIMIT_H__C47564E9_A44A_4103_A810_109ECD6215F8__INCLUDED_
  21.  
  22. #if _MSC_VER > 1000
  23. #pragma once
  24. #endif // _MSC_VER > 1000
  25. // UsersDlgSpeedLimit.h : Header-Datei
  26. //
  27.  
  28. /////////////////////////////////////////////////////////////////////////////
  29. // Dialogfeld CUsersDlgSpeedLimit 
  30. #include "UsersDlg.h"
  31.  
  32. class CUsersDlgSpeedLimit : public CSAPrefsSubDlg
  33. {
  34. // Konstruktion
  35. public:
  36.     CUsersDlgSpeedLimit(CUsersDlg *pOwner);   // Standardkonstruktor
  37.     ~CUsersDlgSpeedLimit();
  38.     
  39.     void SetCtrlState();
  40.     BOOL DisplayUser(const t_user *pUser);
  41.     BOOL SaveUser(t_user *pUser);
  42.     CString Validate();
  43.     
  44. protected:
  45.     void ShowSpeedLimit( CListBox &listBox, SPEEDLIMITSLIST &list);
  46.  
  47.     SPEEDLIMITSLIST m_DownloadSpeedLimits;
  48.     SPEEDLIMITSLIST m_UploadSpeedLimits;
  49.  
  50.     CUsersDlg *m_pOwner;
  51.  
  52. // Dialogfelddaten
  53.     //{{AFX_DATA(CUsersDlgSpeedLimit)
  54.     enum { IDD = IDD_USERS_SPEEDLIMIT };
  55.     CButton    m_DownloadUpCtrl;
  56.     CListBox    m_DownloadRulesListCtrl;
  57.     CButton    m_DownloadRemoveCtrl;
  58.     CButton    m_DownloadDownCtrl;
  59.     CButton    m_DownloadAddCtrl;
  60.     CButton    m_UploadUpCtrl;
  61.     CListBox    m_UploadRulesListCtrl;
  62.     CButton    m_UploadRemoveCtrl;
  63.     CButton    m_UploadDownCtrl;
  64.     CButton    m_UploadAddCtrl;
  65.     CEdit    m_UploadValueCtrl;
  66.     CEdit    m_DownloadValueCtrl;
  67.     int        m_DownloadSpeedLimitType;
  68.     int        m_UploadSpeedLimitType;
  69.     int        m_DownloadValue;
  70.     int        m_UploadValue;
  71.     //}}AFX_DATA
  72.  
  73.  
  74. // ▄berschreibungen
  75.     // Vom Klassen-Assistenten generierte virtuelle Funktionsⁿberschreibungen
  76.     //{{AFX_VIRTUAL(CUsersDlgSpeedLimit)
  77.     protected:
  78.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV-Unterstⁿtzung
  79.     //}}AFX_VIRTUAL
  80.  
  81. // Implementierung
  82. protected:
  83.  
  84.     // Generierte Nachrichtenzuordnungsfunktionen
  85.     //{{AFX_MSG(CUsersDlgSpeedLimit)
  86.     virtual BOOL OnInitDialog();
  87.     afx_msg void OnRadio();
  88.     afx_msg void OnSpeedlimitDownloadAdd();
  89.     afx_msg void OnSpeedlimitDownloadRemove();
  90.     afx_msg void OnSpeedlimitDownloadUp();
  91.     afx_msg void OnSpeedlimitDownloadDown();
  92.     afx_msg void OnDblclkSpeedlimitDownloadRulesList();
  93.     afx_msg void OnSpeedlimitUploadAdd();
  94.     afx_msg void OnSpeedlimitUploadRemove();
  95.     afx_msg void OnSpeedlimitUploadUp();
  96.     afx_msg void OnSpeedlimitUploadDown();
  97.     afx_msg void OnDblclkSpeedlimitUploadRulesList();
  98.     //}}AFX_MSG
  99.     DECLARE_MESSAGE_MAP()
  100. };
  101.  
  102. //{{AFX_INSERT_LOCATION}}
  103. // Microsoft Visual C++ fⁿgt unmittelbar vor der vorhergehenden Zeile zusΣtzliche Deklarationen ein.
  104.  
  105. #endif // AFX_USERSDLGSPEEDLIMIT_H__C47564E9_A44A_4103_A810_109ECD6215F8__INCLUDED_
  106.